Repository navigation
Fix missing image pull secrets for the mock device plugin - #3168
sanjayy0612 wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sanjayy0612 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe mock device plugin DaemonSet now renders image pull secrets through a new Helm helper that uses the mock device plugin image and global image settings. ChangesMock device plugin pull secrets
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested labels: Suggested reviewers: Merge Risk: ⚪ Minimal · up to The mock DaemonSet now receives global and mock-specific pull secrets, while empty configuration continues to omit the field. No actionable merge risk remains. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🧪 Generate unit tests (beta)
🛠️ Fix failing CI checks 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit checks the chart at night Comment |
Signed-off-by: sanjayy0612 <sanjayelango06@gmail.com>
7ae1f5e to
c25edad
Compare
|
This is being closed because it does not comply with the contribution guidelines. You need: https://github.com/Project-HAMi/HAMi/blob/master/CONTRIBUTING.md#ai-assistance-notice |
What type of PR is this?
/kind bug
What this PR does / why we need it:
The mock device plugin DaemonSet ignores
mockDevicePlugin.image.pullSecretsandglobal.imagePullSecrets. Its image can therefore fail to pull from an authenticated private registry even when the chart values provide credentials.Add a mock-plugin pull-secret helper using the existing
common.images.pullSecretsrenderer and include it in the DaemonSet Pod spec. Global and plugin secrets are both retained, and empty configuration continues to omitimagePullSecrets.Which issue(s) this PR fixes:
Fixes #3167
Special notes for your reviewer:
git diff --checkpassed.make verify_chartpassed its lint, rendering, and version steps but could not run the Trivy scan because the local Docker daemon is unavailable.make verifycould not complete: Go dependency downloads failed with network errors on two attempts (github.com/urfave/cli/v2andk8s.io/client-go). The resulting type-check errors were missing-dependency errors; no Go files are changed by this PR.Does this PR introduce a user-facing change?:
Yes. The mock device plugin Pod now includes configured global and mock-plugin image pull secrets.
Summary by CodeRabbit